-- GENERATED SPELL FOR [North Fleet Sailor] --


function spell0_23866(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23866', 636, 1)
end

function spell1_23866(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(49863,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23866', 627, 1)
end

function Sorts_23866(pUnit, Event)
local choix_sorts_23866 = math.random(0, 1)
if choix_sorts_23866 == 0 then
pUnit:RegisterEvent('spell0_23866', 1, 1)
end
if choix_sorts_23866 == 1 then
pUnit:RegisterEvent('spell1_23866', 1, 1)
end
end

function mob23866_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23866', math.random(1500, 3000), 1)
end

function mob23866_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23866_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23866_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23866, 1, 'mob23866_Action')
RegisterUnitEvent(23866, 2, 'mob23866_Leave')
RegisterUnitEvent(23866, 3, 'mob23866_Kill')
RegisterUnitEvent(23866, 4, 'mob23866_Die')
